package com.niit.mall.pay.domain.enums;


import lombok.Data;
import lombok.Getter;

/**
 * @BelongsProject: pardo_mall_backend
 * @BelongsPackage: com.niit.mall.admin.enums
 * @Author: ChuXuan
 * @CreateTime: 2025-05-25  23:36
 * @Description: 支付类型
 * @Version: 1.0
 */
@Getter
public enum PayType{
	JSAPI(1, "网页支付JS"),
	MINI_APP(2, "小程序支付"),
	APP(3, "APP支付"),
	NATIVE(4, "扫码支付"),
	BALANCE(5, "余额支付"),
	;
	private final int value;
	private final String desc;
	
	PayType(int value, String desc) {
		this.value = value;
		this.desc = desc;
	}
	
	public boolean equalsValue(Integer value){
		if (value == null) {
			return false;
		}
		return getValue() == value;
	}
}
